/***************************************************************************
 **
 **  Copyright (C) 2021 MaMinJie <canpool@163.com>
 **  Contact: https://github.com/canpool
 **           https://gitee.com/icanpool
 **
 **  GNU Lesser General Public License Usage
 **  Alternatively, this file may be used under the terms of the GNU Lesser
 **  General Public License version 3 as published by the Free Software
 **  Foundation and appearing in the file LICENSE.LGPL3 included in the
 **  packaging of this file. Please review the following information to
 **  ensure the GNU Lesser General Public License version 3 requirements
 **  will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
 **
 **  GNU General Public License Usage
 **  Alternatively, this file may be used under the terms of the GNU
 **  General Public License version 2.0 or (at your option) the GNU General
 **  Public license version 3 or any later version approved by the KDE Free
 **  Qt Foundation. The licenses are as published by the Free Software
 **  Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
 **  included in the packaging of this file. Please review the following
 **  information to ensure the GNU General Public License requirements will
 **  be met: https://www.gnu.org/licenses/gpl-2.0.html and
 **  https://www.gnu.org/licenses/gpl-3.0.html.
 **
****************************************************************************/
#include "literibbongroup.h"
#include "literibbongroup_p.h"

#include <QIcon>

QLITE_BEGIN_NAMESPACE


LiteRibbonGroupScrollButton::LiteRibbonGroupScrollButton(QWidget *parent)
    : QToolButton(parent)
{

}

LiteRibbonGroupScrollButton::LiteRibbonGroupScrollButton(Qt::ArrowType arrow, QWidget *parent)
    : QToolButton(parent)
{
    setArrowType(arrow);
}

LiteRibbonGroupScrollButton::~LiteRibbonGroupScrollButton()
{

}

class LiteRibbonGroupPrivate
{
public:
    LiteRibbonGroupPrivate();

    void init();

public:
    LiteRibbonGroup *q;

    QString m_title;
    QIcon m_icon;
    QFont *m_font;
};

LiteRibbonGroupPrivate::LiteRibbonGroupPrivate()
{

}

void LiteRibbonGroupPrivate::init()
{

}

LiteRibbonGroup::LiteRibbonGroup(const QString &title, QWidget *parent)
    : QWidget(parent)
    , d(new LiteRibbonGroupPrivate())
{
    d->q = this;
    d->init();
    setTitle(title);
    setObjectName(QLatin1String("qlite_ribbongroup"));
}

LiteRibbonGroup::~LiteRibbonGroup()
{
    delete d;
}

const QString &LiteRibbonGroup::title() const
{
    return d->m_title;
}

void LiteRibbonGroup::setTitle(const QString &title)
{
    if (d->m_title == title) {
        return;
    }
    d->m_title = title;
}

const QFont &LiteRibbonGroup::titleFont() const
{
    return font();
}

void LiteRibbonGroup::setTitleFont(const QFont &font)
{

}

const QIcon &LiteRibbonGroup::icon() const
{
    return d->m_icon;
}

void LiteRibbonGroup::setIcon(const QIcon &icon)
{
    d->m_icon = icon;
}

bool LiteRibbonGroup::isOptionButtonVisible() const
{
    return false;
}

void LiteRibbonGroup::setOptionButtonVisible(bool visible)
{

}

QAction *LiteRibbonGroup::optionButtonAction() const
{
    return Q_NULLPTR;
}

void LiteRibbonGroup::setOptionButtonAction(QAction *action)
{

}

QLITE_END_NAMESPACE
